Fix local cache get bug