fix geospatial queries