Fixed bug in addInventory.php