minor fix to save mat file