Fix alternate metadatas for documents