fix up index