Fixes scrolling bug