fix distance,rng,choices bug