Fixed bug in setting a sub matrix with transposition