bugfix setScripts