fixed the scrolling bug