Fix layer_shapefile on PostGIS