Controlling a Character with analog stick causes odd idle glitch

I have a character set up, it works perfectly with mouse and keyboard, so I set up the input to be controller, which is a PS2 controller, and everything works fin but for some reason when in idle mode the character always plays the walk animation and faces the same direction, sometimes moving in that direction too. This not only causes an ugly look bug can result in the character losing a life through no fault of the player. I have a also tried the same controller on the Lerpz tutorial game and I get the same issue, is it the controller? Or am i missing something?

Nevermind, for anyone who comes across this with the same problem, set the dead zone to 1 and it should fix the issue :)