Help! Painful breastfeeding

B

My daughter is 5.5 months old and just started to do this thing when she's latched on. I make sure she's correctly latched but then she tilts her head back far which pulls my nipples because it causes her mouth to go latched from my areola to the base of my nipple and then she pushes my breast forward at the same time. My nipples are so sore from her doing this and I don't know how to get her to stop. Any tips?