if you "pass <message name>" then the script stops at this place!
Everthing after that line will not be executed, so put the PASS statement
at the end of your script and everything will be OK.
Since you have "put tKey after fld ..." in the script maybe PASS is not neccessary here at all?
Hint:
Since this obviously has nothing to do with the actual thread title, you better create a new topic
in another (correct

Best
Klaus