corrected a fault in the template