Fix bug where scroll up to top would miss characters