Weird rotation on character

HI community! I have a weird problem with my character when gets cover position , I just dont know why is rotating 90* on yaw, as seen on the picture, I try to set root motion and nothing changes. She should be back to the wall…
If someone has an idea where I should take a look ,would be great!

thanks in advance!

Start by showing us some code. Then we can help you.