fix bug in emitter binding