Fix evi crash when defining more than 10 events