Fixed a bug on the stat trigger.