Fixes initialization of the scroll