fixed mat file dir