Fix to type in the index template