Update index to match text