Fixed the error with the Q/q quitting issue