Fix allperfs trigger function

Small fix about a trigger function