ai.Velocity.Magnitude showing 20 but unit isnt moving

I have stopped the unit moving use the canMove bool but the velocity.magnitude is still showing 20.

I need to use the velocity to sort the walk animations. What should I do to get this working?

I think this error occurs when using the canMove bool. It doesnt seam to update the previous position when canMove is set to false, so the agent thinks its still moving.