fixed CSV formatting issues