fix event emitter dependency