[minor] slight change to event emitter code