fix a exiting bug