fix type in email template