title: Csv Helper. First Value is shifting to the right
body: <p>I have been trying to create a simple csv file using the csv helper. However, the result, I am getting is not what I expected.
  For some reason which I cannot find it, the first value is shifting towards the right and appear as the header.</p>
  
  <p>Could someone point me what I am doing wrong here?</p>
  
  <pre><code>public class Record
  { 
      public string Vrm { get; set; }        
      public string Version { get; set; }
      public DateTime Started { get; set; }
      public DateTime? Completed { get; set; }
      public string Status { get; set; }
      public string Comments { get; set; }
  }
  
  static void Main(string[] args)
      {
          var source = new List&lt;Record&gt; {
              new Record {
  
                  Status = "Success",
                  Version = "enhance",
                  Started = DateTime.Parse("2017-11-15 13:27:56.9933333"),
                  Completed = DateTime.Parse("2017-11-15 13:27:57.7300000"),
                  Vrm = "16aux",
                  Comments = "Completed Successfully"
              }
          };
  
          var month = DateTime.UtcNow.Month;
          var year = DateTime.UtcNow.Year;
          var fileName = $"TestFile_{month}{year}.csv";
  
          using (var sw = new StreamWriter(fileName))
          {
              var writer = new CsvWriter(sw);
  
              try
              {
                  writer.WriteHeader&lt;Record&gt;();
                  foreach (var record in source)
                  {
                      writer.WriteField(record.Vrm);
                      writer.WriteField(record.Version);
                      writer.WriteField(record.Started);
                      writer.WriteField(record.Completed);
                      writer.WriteField(record.Status);
                      writer.WriteField(record.Comments);
                      writer.NextRecord();
                  }
  
              }
              catch (Exception e)
              {
                  Console.WriteLine(e);
                  throw;
              }
  
              var i = sw;
          }            
      }
  </code></pre>
  
  <p>The result is something like this:
  <a href="https://i.stack.imgur.com/yZTFR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yZTFR.png" alt="Result of only one record"></a></p>
  
  <p><a href="https://i.stack.imgur.com/4xrc5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4xrc5.png" alt="Result with two records"></a></p>