fixed quitting