; (2) in subsection (c), by striking under section 706, 1112, 1208, or 1307 of this title and inserting under section 706, 1005, 1053(c), 1112, or 1208 of this title; (3) in subsection (d), by striking under section 1112, 1208, or 1307 of this title and inserting under section 1005, 1053(c), 1112, or 1208 of this title ; (4) in subsection (e), by striking under section 706, 1112, 1208, or 1307 of this title and inserting under section 706, 1005, 1053(c), 1112, or 1208 of this title; and (5) by striking subsection (f). (t) Effect of dismissal Section 349 of title 11, United States Code, is amended— (1) by striking subsection (a) and inserting the following: (a) The dismissal of a case shall not— (1) bar the discharge, in a later case, of debts that were dischargeable in the case dismissed, except as provided in section 523, 1031, 1141, or 1228; or (2) prejudice the debtor with regard to the filing of a subsequent petition, except as provided in subsection (g) or (h) of section 109. ; and (2) in subsection (b)(1)(B), by striking or 724(a) of this title, and inserting 724(a), or 1041 of this title, . (u) Automatic stay (1) In general Section 362 of title 11, United States Code, is amended— (A) in subsection (a)— (i) in paragraph (3), by inserting or to retain after to exercise control over ; (ii) in paragraph (7), by striking and at the end; (iii) in paragraph (8), by striking the period at the end and inserting ; and ; and (iv) by adding at the end the following: (9) in a case under chapter 10 of this title, at any time before the earliest of a conversion or dismissal under section 1005 of this title, a dismissal under section 1053(c) of this title, or a discharge under section 1031 of this title, any act to alter, refuse, or discontinue utility service provided to the debtor under an agreement entered into before the entry of the order for relief. ; (B) in subsection (b)— (i) by striking paragraph (22)