Fix thumbnail builder crash