Fix graph style when clearing the graph.