fix event emitter library