Fix deepcopying JIDs