Fixes a bug with using external emitter