Fix errors in csv files