fix bug in email template