Fix bug where the top group would not render when scrolling up; Fix bug where groups would incorrectly be divided up when scrolling up