Fixed bug in csv table writer.