Fixed Problem with index Reference