fix unclosed tag in template