fixed bug where null values were created at end of csv columns