This is one of many examples where a script can trip script triggers and produce an undesirable result.
One option is to disable the script triggers by writing their scripts to check the value of a global variable and exit without doing anything if the variable is set to True:
If [Not $$TriggersOff ]
Set variable [$$TriggersOff ; Value: True ]
# Put current script steps here
Set variable [$$TriggersOff ; value : False ]
All layout based script trigger controlled scripts should include this same code.