Fixed the scroll bug