Fixed error at index template