fix cmd-q quitting