fix xmpp element structrue