Fix #468 - undefined variable
Merge pull request #469 from smfreegard/master

Fix #468 - undefined variable