fixed another bug in saveCXI.cpp, it should now save data properly...