fix random scrolling crashes
Merge pull request #8 from sagar2305/sagar_working

fix random scrolling crashes