Perks restriction bug fix.