fixed the scroll bug