fixed the scrolling problem