fix automatic scrolling