mailing: render template bug fixed