fix bug with using immutable map in emitter