US President Donald Trump said on Thursday he will issue a new executive order to replace his controversial directive suspending travel to the United States by citizens of seven mostly Muslim countries.

At a White House news conference on Thursday, Trump said the new order would seek to address concerns raised by federal appeals court judges, who temporarily blocked his original travel ban.

“The new order is going to be very much tailored to what I consider to be a very bad decision,” Trump said, adding: “We had a bad court.”

Trump gave no details about the replacement order. Legal experts said a new directive would have a better chance of withstanding courtroom scrutiny if it covered some non-Muslim countries and exempted non-citizen immigrants living in the US legally.

The original order, issued on January 27, triggered chaos at some US and overseas airports, led to international protests, complaints from US businesses and drew more than a dozen legal challenges.

In a court filing on Thursday, the Justice Department asked for a pause in proceedings before the 9th US Circuit Court of Appeals, which sided with a federal court in Washington state to suspend the travel ban, while litigation over its legality according to the US Constitution played out.

The Justice Department asked the court to vacate that ruling once the administration has rescinded its original order and issued a new one. In an order later on Thursday, the 9th Circuit put proceedings over the ban on hold but did not say whether it would eventually withdraw its previous ruling.

The ban has been deeply divisive in the United States, with a Reuters/Ipsos poll indicating about half of Americans supported it shortly after the order took effect.