Fix missing var
Merge pull request #940 from robottaway/master

Fix missing var