Distance Checking Fix