Fixed the distance calculation