fix ScriptMonitor