A fix for the scrolling up bug