fixed graph renaming special case and reinitialized graph object