bugfix in saving new script's