fixed bug with stop button