fixing email templates