Whitout it I couldn't close dialogs.