fixed some print issues in graphs