Fixed bug in index template.