fixed issue #4 Replace deprecated funciton Event::getName