fixed display issue with hidden dialogs.