fixing index template