Fix processing email template.