Correct reference to p.inventory.mainInventory