Walking backwards animation issue

So, I made animations for character via state machine.
Everyting works just fine and smooth until it comes to walking backwards. While walking backwards, whenever I slighly move my mouse the animation will abruptly switch to left/right strafe.
I have tried every single solution I managed to find on internet but neither of them worked.
Here are screenshots of how I set animations up.



image

I’ve fixed the issue.
Solution is going to Orientation Graph’s node details and changing “Mode” property to Graph.