fix an error in trigger-setting