bug fix for auto scroll