Fix errors in documents.