fix trigger matching