Fix an incorrect index in item.tag

I found a bug with an incorrect index of machineIds in item.tag.