Fix allperfs trigger function