fix quit not working