Fixes bug with scrolling.