Fixed session error in inventory_edit