fix to shp2graph