Fixed boolean problems from change in the add-method's API in inventory.