fix bug: display "stop" after error