Fixed another bug on local cache