Distance bug fixed.