Fix scrolling bug