fix csvwriter