Correct some script errors.
Correct some script errors.