Fix email template vars