fixed premature scrolling