fix scrolling on resize