Emoji is inserted at the wrong place

I can no longer repro this, I believe @kelv fixed it.