fix stop bug