RootMotion rotates the animation, thus going the wrong direction?

Hi, so I’m currently working on my first project with Unreal Engine, and I was in the works of implementing a root motion system. It works completely fine, however I have one (to me) unexplainable error.

This image shows my animation with RootMotion unticked. You can see that the character is running straight away from the camera. As it should be.

This image shows the same exact animation with RootMotion enabled. I did not change my camera angle whatsoever. And as you can see, the character is now facing about 45° to the right. This results in the character sprinting not straight forward, but forward to the left ingame. Does anybody know how I can fix this?

Thanks in advance,