Reset the document