Fix a document