fixed modal dismiss error