bugfix in scripts