Event limit fix

Replaced missing comma in a multi-line var declaration caused the limit
variable to be overwritten.