fix csv header processing