Fix scroll bug on first load