Fixed cleaning up of graph2d groups.