Replace ids with items