fix graph regressions
Merge pull request #549 from oetiker/graph-fixes

fix graph regressions