fix for resize event on IE