Fixes bug on scrolling