Fix add documents.
Fix add documents.