Fix bug in emu trig match