Modify behavior when there is a wrong index