Fix close button dialogs