Fix for SessionScriptManager.