Fixed bug in set_sub_mat()