Fixing matmul dimensions