fix dialog not dispose bug