rig leg problems

I think I am down to a final problem if anyone can help with would be appreciated. I used rigify for my rig and it works just fine. But coming down to the final test run I noticed my rig’s left leg deforms when I either hit the undo key or open the file from scratch. I can select the rig and hit alt R, G, S and the rig resets just fine but for some reason the left leg will deform and flatten when either undo is selected or the file is first opened. I am attaching a pic of the rig before and after as well as the file. Thanks in advance if anyone can help.


Test.blend (5.31 MB)