fix on resize issue