Corrected the way it saves the path for statData.mat.