Bugs removed in RankBiasedDistance