Fix script dict in ScriptManager