fixed quit button not working