fix bug on passing PointedGraphs.