Fix thumbnail cache issue