fixed a bug in emote matching