Fix bug where graph wasn't redrawing.