fix docid range splitting logic.