Inventory is now properly saved and loaded.