fixed bug in csv