check for error when scoll-ing