Fix for haversine.