Fix doc retrieval.