fixes window.resize bug that freezes ie7