fixed broken index