Fixed bug in DebugToCSV.  X was reversed,