fix confirm dialog not destroyed issue