Fix some script errors.