Fix #316
Typo in variable name
Merge pull request #334 from qcz/316-fix

Fix #316