A U.S. Supreme Court ruling on North Carolina redistricting leaves intact General Assembly boundaries for this fall’s elections.

The justices ruled 8-1 on Thursday it was proper for a lower-court panel of federal judges to determine that four state House and Senate districts drawn by the Republican-controlled legislature in 2017 still were illegal racial gerrymanders. The panel ultimately redrew the boundaries in and around those districts.

But the Supreme Court decided the panel went too far ruling changes in and around Raleigh and Charlotte violated the state constitution’s prohibition on mid-decade redistricting. The justices already had temporarily blocked the altered districts from use while it considered the case.

Thursday’s order means districts used in the May primaries do not have to be changed, and no special elections are required.