Fix bug exiting