Fixed typo for the isDistanceWithin() functions