fix motor zero speed bug