fix stop bug with command line