fix motor stop bug