fixed modal esc error