Esc close form fix