fix event emitter