Fixing graph output.