fix quit button staying pressed