Correcting broken index reference