fix end of buffer emitter
fix connect end emitter