(CNN) โ€” Hundreds of staff fired from the US Centers for Disease Control and Prevention late Friday have been reinstated, according to the American Federation of Government Employees.

After a new round of layoff notices sent late Friday night to around 1,300 workers at the CDC, approximately 700 were reinstated on Saturday, while about 600 remain laid off, according to the union, which represents federal workers.

โ€œThe employees who received incorrect notifications were never separated from the agency and have all been notified that they are not subject to the reduction in force,โ€ said Andrew Nixon, director of communications for the US Department of Health and Human Services.

Among reinstated employees are staff that publish the agencyโ€™s flagship journal, Morbidity and Mortality Weekly Report, according to Dr. Debra Houry, who recently resigned as the agencyโ€™s chief medical officer and deputy director for program and science. Houry and other high-level CDC officials resigned in August in protest over theย firingย of recently confirmed CDC Director Dr. Susan Monarez.

Athalia Christie, the incident commander for the measles response, was among hundreds of employees mistakenly fired on Friday.ย The annual total of measles cases in the US โ€“ now up toย 1,563 casesย since January โ€“ is the highest by a significant margin since measles was declared eliminated in America a quarter-century ago.

Staff were also reinstated at the CDCโ€™s National Center for Immunization and Respiratory Diseases, the Global Health Center, and the Public Health Infrastructure Center, which manages more than $3 billion in grants to 107 state and local governments to help build local public health workforces, said Dr. Brian Castrucci, who is president and chief executive officer of the de Beaumont Foundation, a nonprofit that advocates for public health workers.

Staff and officers at the CDCโ€™s Epidemic Intelligence Service who were able to check their emails have also received notices that their firings were in error, according to a CDC official with knowledge of the situation who asked not to be named for fear of retaliation.

Epidemic Intelligence Service officers, also known as โ€œdisease detectives,โ€ are often the first to respond to disease threats when they arise.

โ€œWe think all staff and all officersโ€ are back, the official said.

The mistakenly fired employees were sent incorrect notifications because of a coding error on the notices, according to an HHS official. The employees who got the miscoded notifications were all told about the glitch on Friday or Saturday, the person said.

โ€œItโ€™s pure managerial incompetence,โ€ said Dr. Nirav Shah, who resigned earlier this year as principal deputy director of the CDC. โ€œI used to think that chaos was the byproduct of this managerial incompetence. Now I start to wonder whether the chaos is the point.โ€

Staff at CDCโ€™s Washington office, in its Violence Prevention programs, and in the Office of the Director of the Injury Center, remain separated from the agency as part of the latest round of the Trump administrationโ€™s Reduction in Force initiatives. In total, the cuts total about 600 positions.

The impact of these job losses may not be immediately apparent to people going about their day-to-day lives, but they leave the country less prepared, said Shah, who is currently a visiting professor at Colby College in Maine.

โ€œThese cuts will mean that when the next health crisis comes along, precious days, weeks, months will be spent getting ready when we should have been ready,โ€ Shah said.

President Donald Trump said late Friday afternoon that he planned to fire โ€œa lotโ€ of federal workers in retaliation for the government shutdown, vowing to target those deemed to beย aligned with the Democratic Party.

โ€œWe figure they started this thing, so they should be Democrat-oriented,โ€ Trump said, placing blame for the shutdown on Democratic lawmakers. Trump did not provide details on what qualified the affected workers as โ€œDemocrat-oriented.โ€

The legality of firing federal workers during a government shutdown is also in question. Shortly after Office of Management and Budget Director Russell Vought posted โ€œThe RIFs have begunโ€ on X on Friday AFGEย repliedย โ€œThe lawsuit has been filed.โ€

Aย court filingย in that case indicates more than 4,100 federal workers were impacted by the cuts at HHS as well as the departments of Commerce, Education, Energy, Housing and Urban Development, Homeland Security and Treasury.

โ€œMy message for the CDC staff is the work they do has never been more important,โ€ Shah said.

CNNโ€™s Deidre McPhillips contributed reporting.