fix a bug in _merge_bigram_frequency