Fix a couple of typos in the document endpoint.