bug fix for the forward movement and the stop.