Fix weird scrolling.

Thanks @rdalal!