My one month old won’t stay latched

I’m using a nipple shield due to flat nipples. We have tried to quit using it but she refuses to BF when I try without it. But lately she won’t stay latched on the nipple shield. She sucks for a few seconds and then unlatches and squirms around before relatching. Any idea how to fix this or why she would be doing it?