Fixing the quit button