fixes to graph rendering