Does the error happen when the script is in either state (clear/tokenized)? I've had tokenized scripts do weird things like this too.