Fixed bug writing csv outputs in NCSS