fixes in ScriptCompiler