Correct template closing tags.