_set_doc_version wasn't working right