issue-1336

This should fix the graphs on the statistics screen. Hopelfully i've done this pull request right :-)