Animation Blueprint Calculate Direction Doesnt Work Properly

Hi, I have a problem with my animations. It works when I aim to W direction (forward direction) it seems okay
But when I aim to A direction (left) and press W to walk forwad it isn’t animating legs to move right/left
It’s animating like I’m moving forward
You can see in the link it’s a gif.