fix jid parsing