fix the exiting bug