fixed dialog closing bug