fix parsing of jid