HTML error in templates corrected