fixed the graph widget