Fix a typo in variable name that makes a variable leak

Closes #232.