fixed email template bug