Fixed bug in the graph widget.