Fix bug in EventTree