fixed exception when switching to graph screen
Merge pull request #33 from Connor-Marble/graphfix

fixed exception when switching to graph screen