some fixes to CSV class convert