Fix multi-trigger bug