Fix error on scrolling.