fix crash while scrolling