How do i fix this weird bug with full-body costumes?

I am trying to make this fit more towards the original mesh, but this bug started happening recently, where it inverts the foot sort of.

I have tried countless fixes, first by changing the cages, making the reference point change, changing the mesh, nothing works. im very stumped.