Fixed the scroll behavior