deferring emit to nextTick