fixed list error in mat.train