it will eventually happen to (almost) everyone - it is usually caused by short hamstrings. first thing is obviously to stretch those naughties. second things is to "pull in the hole" meaning you use your hip muscles to pull you down actively into the squat rather than just letting gravity do its work if this makes sense