I really don't know
To let us investigate further, please attach your script to your (next) post.
Reminder: to do that, whilst editing click the "Go advanced" button, then the paper clip icon in the icons bar, "Browse" to select the file then "Upload". And append ".txt" to the name so that it be recognized as a text file.