People stand on a hill to get a better look at floodwater from the Bourbeuse River Tuesday, Dec. 29, 2015, in Union, Mo. Flooding across Missouri has forced the closure of hundreds of roads and threatened homes. (AP Photo/Jeff Roberson)

ST. LOUIS | Though the Mississippi River and its tributaries didn’t top the 19 vulnerable levees that federal officials were monitoring, the dangers from a rare winter flood remained throughout Missouri and parts of Illinois on Wednesday.

Swollen rivers and streams pushed to near-record heights, which a day before caused an unknown number of inmates to be transferred out of an Illinois state prison and prompted a disaster declaration by Illinois’ governor in seven counties and the activation of the National Guard by Missouri’s governor to help divert traffic from submerged roads.

At least 20 deaths over several days in Missouri and Illinois were blamed on flooding, mostly involving vehicles that drove onto swamped roadways, and at least two people were still missing Wednesday. Some parts of interstates in Missouri reopened, while others were still covered by water.

In southwestern Missouri, residents of about 150 duplexes and homes in the tourist town of Branson had to evacuate Wednesday when flooding from a manmade lake threatened. But the shopping district along the lake was still open, Fire Chief Ted Martin said, adding, “it has been packed with people, and I don’t know where all of them have come from.”

Record flooding was projected in some Mississippi River towns after several days of torrential rain that also caused sewage to flow unfiltered into waterways.

The Meramec River near St. Louis was expected to get to more than 3 feet above the previous record by late this week. The river on Tuesday spilled over the top of the levee at West Alton, Missouri, about 20 miles north of St. Louis. Mayor William Richter ordered any of the town’s approximate 520 residents who had not already evacuated to get out of harm’s way.

Across the river, in Alton, Illinois, dozens of volunteers helped place sandbags ahead of where water is expected to rise. Mayor Brant Walker said in a statement that flooding was expected at least in the basements of the downtown business district.

The normally docile Bourbeuse River reached the roofs of a McDonald’s, QuikTrip and several other businesses in the eastern Missouri town of Union, where the river reached an all-time high Tuesday.

Interstate 44, which had been closed on and off for the past few days, was closed Wednesday in southwest St. Louis County, but the westbound side of the interstate near the central Missouri town of Rolla reopened. Hundreds of smaller roads and highways were also closed across the two states, and flood warnings were in effect.

Missouri Gov. Jay Nixon activated the National Guard to assist with security in evacuated areas and to help keep road closure sites clear.

In southern Illinois, the Department of Corrections transferred an unspecified number of inmates from a state prison to other locations because of flooding risks. The facility houses nearly 3,700 inmates.

In St. Louis, more than 500 volunteers turned out in blustery, cold conditions to fill sandbags where a flooded waterway threatened hundreds of homes. The city later trucked 1,500 of the sandbags south to a nearby county to fortify a wastewater treatment plant threatened by the swollen Big River.

The Mississippi River is expected to reach nearly 15 feet above flood stage on Thursday at St. Louis, which would be the second-worst flood on record, behind only the devastating 1993 flood.

The high water was blamed on the shutdown of a wastewater treatment plant on Monday just south of St. Louis, causing sewage to go directly into nearby rivers and streams. The Metropolitan Sewer District of St. Louis said the Fenton wastewater treatment plant, which is designed for 6.75 million gallons per day of flow, was treating nearly 24 million gallons per day at the time of the malfunction.

One of the two wastewater plants in Springfield, Missouri, also failed, allowing partially treated sewage to flow into a river.

The U.S. Coast Guard closed a 5-mile portion of the Mississippi River near St. Louis due to flooding. Capt. Martin Malloy cited high water levels and fast currents in the river, which is a vital transportation hub for barges that carry agricultural products and other goods.

In central and southern Illinois, major flooding was occurring along the Kankakee, Illinois, Sangamon and Vermilion rivers.

In Granite City, Illinois, about 30 residents of a flooded trailer park idled in a Red Cross emergency shelter in a church basement. The park’s property manager told Shirley Clark, 56, and other displaced residents that it could be another 10 to 12 days before they’re able to return to their homes.

“We need help over here,” said Clark, a diabetic who said she left behind her insulin supply. “We’re just holding on.”

Scher Zagier reported from Granite City, Illinois. Associated Press writers Jim Suhr and Heather Hollingsworth in Kansas City, Missouri, contributed to this report.