fix errors in trigger-pulling