Applying an updated of the document