fix random scrolling crashes