On Win7, there are blank row generated in between the key & value rows in the result csv file. Fixed it by checking each row while we processing the csv, and skip the row if it's blank.