Fix for PostGIS