repair localStorage cache