fix EventEmitter reference