Fix inport/outport export not working

item.node is undefined here, so use item.process instead.
item.node is used elsewhere though, seemingly without issue,
so this could be an issue which should be fixed elsewhere.