What can I do to fix the angle of the foot in different character rotations?

Here’s a tutorial :innocent: