fix undefined jid