fix fit on resize