data format bug fix for csv