repair the map find_kv