Fix csv syntax errors