Fixes upside down graph

Fixes #310.

Since these functions are not referenced to any assembly I can't tell if the mistake is from elsewhere but this fixes the graphs.