fixed printing CSV