Metahuman foot acting weird!

I’m trying to make a control rig for a metahuman that I’ve created, but when I try to add IK, the foot does this:

Please assist!