Fix crash on scrolling