trying to fix index problems