fix bug with stop button