Fixed removal of clearGraph()