correct bug in loading mat v4 file