correction  bug + event ESC