fix bug: duplication in doc rank