Fixed the haversine gist