Fixed dumb bug extending event emitter