fixed the auto-scrolling broken with the new layout