bug fix to formatting nodes in the graph.