BUGFIX to csv dumping