csv writing bug 2