Fixed error in scripts