fixes parsing csv with headers option