Removed an extra tab when dealing with subkeys while writing KVs