How to fix deformed rig?

I recorded the issue below