Fixed bug with inventories not saving