fixed another bug in haversine formula