Controls invert when Char X axis goes below 0

I have a camera rotation system which follows the player normally. When an enemy is locked on, the camera and player focus on the enemy. The problem is that when the player X is below the Enemy X the controls invert, and Forward becomes back and left becomes right. I tried to get a branch that when the Player X is below the Enemy X the movement input becomes inverted, however it clamps when the condition is about to turn from false to true. Here are my blueprints. Does anyone have any suggestion?