ATLANTA (AP) — Lines formed at gas stations across the South on Saturday and drivers who were able to find fuel had to pay more for it in some cases, as prices edged up following a pipeline spill in Alabama.

Fuel supplies in at least five states – Alabama, Georgia, Tennessee and the Carolinas – were threatened by the spill, and the U.S. Department of Transportation ordered the company responsible to take corrective action before the fuel starts flowing again.

Colonial Pipeline Co. must conduct testing and analysis on the failed section of the pipeline, according to the Transportation Department’s Pipeline and Hazardous Materials Safety Agency, which is investigating the spill in rural Alabama.

The company has acknowledged that between 252,000 gallons and 336,000 gallons of gasoline leaked from a pipeline near Helena, Alabama, since the spill was first detected Sept. 9. It’s unclear when the spill actually started.

“The department will remain on site to carry out its investigation, and make sure the operator is taking the necessary steps to prevent any future incidents,” agency administrator Marie Therese Dominguez said in a statement.

“Tennessee’s consumers need to maintain their normal driving and fuel buying habits. If consumers fill up unnecessarily, top off their tanks when they aren’t close to empty, and fill multiple containers at the pumps, then our petroleum retailers will not be able to keep up with the demand of the fuel supply,” he said.

Quik Trip spokesman Mike Thornbrugh said several stations in South Carolina were seeing outages.

“When you have a pipeline of that magnitude go down, it just shows everybody unfortunately how fragile the system is and it doesn’t take much to cause some hiccups,” he told WYFF (http://bit.ly/2cy6o1H).

In a statement Saturday, the Alpharetta, Georgia-based company said that repair work had begun in an effort to return the pipeline to service “as rapidly and safely as possible.”

The company said it is shipping as much gasoline as possible on its distillate mainline, Line 2, in order to mitigate the impact of the pipeline that has been shut down. Colonial earlier said most of the leaked gasoline is contained in a retention pond near the city of Helena and there’s no public safety concern.

Motorists could pay even more for gasoline in coming days, although experts say that any spike in service-station prices should only be temporary.

In response to the shutdown, the governors in Alabama, Georgia and Tennessee announced they would lift restrictions on the number of hours that truck drivers delivering fuel can work, in hopes of preventing fuel shortages. Governors can suspend federal transportation regulations during emergencies.

The U.S. Environmental Protection Agency waived requirements this week that metro areas with air quality issues in Georgia and Tennessee use a cleaner-burning type of gasoline during the summer months. That requirement of the Clean Air Act expired at midnight Thursday.