scrolling race condition bug fix