solve the 'stop' bug