fix esc problem