fixing haversine