fix IndexTemple