Animation affects the rotation..

I am working on a sidescroller shooter. My doublejump animation gets the character to roll. I have created this animation in 3dsmax and it works just fine, as it did before.
The problem with this animation is that whenever the character hits the ground and switches to the idle animation the character still remains with the rotation from the last frame of the animation so it gets the legs to be rotated abit to the right. which looks unrealistic. The character also gets its legs below the CharacterControllers collider. I dont want the animation to affect its rotation.

I guess fixing such an issue should be easy. It is pretty strange that I could’nt find a solution.

I have used animation.CrossFade to solve this problem instead of animation.play