fixed checnking for lat/lng