fixed jid and pid distiction