Resolves #184: typo in variables scope