Corrected templates with endings.