fix reading csv for errornous input