fix hooking for latest IE8