Rarity added fixed a bug