fixing error that breaks in strict mode

This undeclared variable broke when this code was accidentally put into strict mode.