fixed b2Distance