fixed a bug in trigger_helper.py