fixed endkey_docid bug