fixed the bug for scroll.