fix strange behavior in IE8