fix undefined variable in strict mode