Fix bug in EventsController