Fixed null when setting player inventories.