Corrected error in template files