Fix undeclared variable in strict mode

Applies to #232