Fix bug in event.coffee.