Fixed the call to stop the motor