fixed getEventHandlerReference