Fix the bug in KVDatabase::Put