Corrected variable use.
Merge pull request #645 from chrisabrams/master

Corrected variable use.