fixed error in index template