Fixed bug in quitting