fix "null can be undefined in strict mode"