fix checkScroll firing twice