Fix graph visualization bug.