fix stop bug from command line