Fixed server crash caused by rarity enum.