fix csv stream