scrolling race condition bug fix1