fixed copygraph call