fixed bug with csv file