Fix LastDist (before loop)