Fix bad variable reference
Merge pull request #56 from elliot42/master

Fix bad variable reference