Fix scrollbar going out of sync.