fixed error in csv parsing