Mecanim Bug: Bones inverted

Mecanim is randomly inverting some of my bones. (see image) Is there a workaround for this?

Thank you!


This is happening to us too. Please somebody help with this.

I realized the problem was caused by the rotation of bones in the skeleton being too far from the rotation of the root. Rotating the skeleton using the root instead of other bones in my animations fixed the problem.