Fixed a bug where a script variable remained in the scope of the user-supplied code when run.