Generate rig produces a "bugged" controller I'm having a really weird problem. I added a metarig to the scene, edited the pose to fit my character,, apply it as the rest pose, applied loc/rot/scale, and Generated Rig. The problem is that on the rig that it generates there is a &quot;bugged&quot; controller in the image below.

On the left side is the controller in rest mode in the forward position where it should be. On the right side is the controller in pose mode where it slightly rotates on the Z axis, despite it being locked.
I thought the solution would just be to alt+R and G to reset rotation and movement but for some reason these controllers will not reset to the rest mode. And I don't know of any other way to apply the pose mode position to these. Even when I go to the skeleton layer that controls the problem controller I can't fix it because you can't move the actual bone in pose mode and it goes to the rest pose in edit mode.
Does anyone know why this happens and/or how to resolve it?
Edit: just realized it causes problems with the hand bones and toe bone as well.
EDIT2: Here is the file. https://drive.google.com/file/d/1jk5RvFQrdlHRr4Pruz8Sk9br0QX3_IYm/view?usp=sharing
You can see how the rig adjusts itself by going from the rest position to the pose position in pose mode.
I looked into your file and noticed the problem. I looked to the knee of the metarig and it looks like your knee is facing backwards. You can see that because the pole is backwards. I posted several pics explaining this. That is why the IK is snapping weirdly when rotating the foot. I removed the rig and generated a new one using your metarig and it seems to have fixed the snapping issue. But there are several other issues with this rig.

While I'm a it, I would suggest you to move the kneecaps a bit to the front, so you're knees won't bend to the back when lifting the IK Foot.


Hope this helps!