fix IndexTemple.cs