anchor.diff:  			s.add(new Slot());
   		}
   		s.forEach((Slot slot) {
  -			if (slot.itemType == null) {
  +			if(slot.itemType == null) {
   				slot.itemType = "";
   				slot.count = 0;
   				slot.metadata = {};
  
positive.code: 
  		//count all the normal slots
  		slots.forEach((Slot s) {
  			if (s.itemType == itemType) {
  				count += s.count;
  			}
  		});
  
negative.code: 
  		tmpSlots.insert(slot, toModify);
  
  		if(!simulate) {
  			inventory_json = jsonx.encode(tmpSlots);
  			await _updateDatabase(email);
  		}
  