Third person movement control changes to weird movements

I am making a third-person cover system. So far I am able to make the character move on a wall based on the hit normal of the raycast but when he leaves the cover, he can only move forwards, backwards, left and right; no diagonal movements. I have the main movement blueprint in its own function and I change it by moving the character along the raycast hit normal. I do not know what I can do to fix it; I can post pictures of my blueprints if needed, I just thought I would post a question to see if someone had the same problem.

The Top picture is the cover movement Blueprint and the second is the basic third person movement in a function. I also have one for moving forwards as well.