Fix shp writer