Character leans after after playing and animation with root motion enabled

Hey all,

I am currently face with an error whilst creating my game where my characters rotation changes when I play an attack animation with root motion enabled and I am unsure how to stop this from happening.

Thanks in advance.