Fix bug when closing the new/open dialogs