fix(Cache) bug on the local storage flush