Fix to ScriptInjector