Fix ScriptException