Fixed item identity bugs by making items and locations equal if they have matching ids