Fixed Inventory leak