fixed dialog not disappeared