fixed recreation of dialogs