Fix scroll position on transition