Fixed KVMessage toXML