d-index script has an error.