Bug fix when there is more than one event.