fix scrolling bug