Output matrix was transposed