fixing undefined variable
Merge pull request #47 from amckinley/master

Fixing undefined variable