Fix script errors.