fixed dialog issue