fixed issue with index template