SPARTA, Wis. (WKBT) -

A semi truck carrying 46,000 pounds of glass jars rolled over north of Sparta early Wednesday morning, blocking traffic and leaving glass scattered across the road.

The crash happened on Highway 27 near Farmland Avenue at 3:52 a.m.

There were only minor injuries, but authorities did have to detour traffic for several hours while they cleared the truck from the scene.

The driver of the truck told authorities he swerved to avoid a group of deer that were crossing the road. The truck tipped over and came to rest on a guardrail, while the side of the trailer ripped open, spilling the empty jars on the highway.

Because the crash happened near a stream, the first priority of authorities upon arriving on scene was to stop the flow of diesel fuel that was spilling out of the truck before it could reach groundwater. Once the leak was stopped, the Sparta Fire Department swept up the shattered glass in one of the lanes.

"Our immediate concern with traffic was to get one lane opened up, so the southbound lane we swept with fire department personnel," said Sparta Fire Chief Mike Arnold.

Authorities guided traffic through the single lane while the rest of the glass could be picked up and a detour could be mapped out. WisDOT closed both lanes on Highway 27 again once the detour was routed. The detour took drivers on County Highway B between Sparta and Cataract.  WisDOT said the crash scene was cleared at about 11:45 a.m.