Fixed bug with empty gemm