fix a bug in BM25