fixed results formatting in CSV output