Old dialogs removing fix