fix non working window resize event in IE8