Fix onClick for runCriteria