Please Fix For twisting armature when i move my hip bone



when i move my hip bone verticaly downwards the armature goes really strange looking and where i should squat, bends sideways
attached is the model itself if anyone wants to try and help
Thanks!
_humanoid model.blend (512 KB)

Put the chain length of 2 on every IK constraint.