fixed bug with stop command