fixed modal close issue