fixing dialogs