minor fix to index template