Sprite cache rebuild fix