fixed breaking of addItem for equal items