HOUSTON (AP) — The U.S. Justice Department says problems have been fixed that led to about 2,100 work permits being mistakenly awarded under President Barack Obama's executive immigration action after a federal judge in Texas had put the plan on hold.

Prosecutors detailed the corrective action in court documents filed Friday in federal court in Brownsville, Texas.

U.S. District Judge Andrew Hanen had threatened to hold Homeland Security Secretary Jeh Johnson and other top immigration enforcement officials in contempt of court if the problems weren't fixed.

It was not immediately known whether Hanen still planned an Aug. 19 hearing to have Johnson and other officials explain the corrective action in person.

Copyright 2015 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.