speed control bug fix