get_triggers: fix minor bug