Fixed an issue in KVCache.get()