fix ReferenceError when running in IE compat mode