fix in tensorcontract_native