Fix an inventory dupe bug.