retouched the index file on the error