fix still quit on ESC bug