ScriptAPI Fix