fix prototype on emitter