fixing broken index