fixed bugs in KVStore
up to date