fix a IE 9+ bug about the object of window