Fixed NaN problem in BM25 algorithm.