Fix the template HTML