Fix the way density data is stored in matlab file format.