; (2) conveyed by the decedent's undetermined heirs or devisees by deed approved by an Oklahoma district court; or (3) conveyed by the decedent's undetermined heirs or devisees of less than one-half degree of Indian blood with or without Oklahoma district court approval. 2. (a) Except as provided in subsection (f), subsection (g), subsection (h), and subsection (i), no conveyance, including an oil and gas or mineral lease, of any interest in the restricted lands described in this section shall be valid unless approved in open court by the district court of the county in Oklahoma in which the land is situated. ; (2) in subsection (b)— (A) by striking county judge and inserting district judge ; and (B) by striking Proceedings for approval of conveyances by restricted heirs or devisees and inserting Proceedings for approval of conveyances ; (3) in subsection (c), by striking best interest of the Indian and inserting best interest of the grantor ; and (4) by adding before the period at the end the following: ; (h) nothing contained in this section shall limit or affect the right of an Indian owner of restricted lands described in this Act to seek and obtain Secretarial removal of restrictions on all or any portion of said restricted lands in accordance with any applicable Federal law; and (i) nothing contained in this section shall invalidate the alienation, conveyance, lease, including oil and gas or other mineral leases, mortgage, creation of liens, or other encumbrance of any lands, if such action was effective before the date of enactment of the Stigler Act Amendments of 2017 and valid under the law then in effect. . 3. Technical amendments The Act of August 4, 1947 (61 Stat. 731, chapter 458), is amended— (1) in section 5, by striking of one-half or more Indian blood, ; (2) in section 6(c), by striking of one-half or more Indian blood,