Weird rotation during root motion animation?

No Im not adjusting the player location manually. Its just a montage which plays the attack animations when I press the attack button.