getRepDistances bug corrected