fixed the bug where the scroll view would jump around inexplicably