bugfix for GEMM3M functions