Fixed bug on local cache