Fix for empty Cast block appearing when scrolling rapidly