Small fix on event boilerplate