Fixed an occasional bug with arrow scrolling