Fixed Inventory::addItem() not adding items properly