Fixed bug in quitting

Fixed bug in quitting