fixed matmul bug