fixes parsing csv with headers option

Fixes issue #36