fix the scroll bug