Well, now that you pointed this, I see that this "looks" like dont belong to this script.

Interesting that I just uncommented the lines, everything is like was at the original script.

Placing it before the action ( action ??? ) doesnt make difference, it gaves the same error, just changing the line.