Fixed a bug in the limit trigger.