fix on resize event