fix wrong dynamic variable in perk