fixed popup escape key not working