bug in scripts