“Fixer Upper” stars Chip and Joanna Gaines will spend $160,000 to abate lead-based paint in homes they renovated where residents are at the highest risk for exposure to dust from the paint and will pay a $40,000 civil penalty under a settlement with the Environmental Protection Agency announced Tuesday.

The settlement with the EPA also requires Magnolia Waco Properties LLC, doing business as Magnolia Homes, to “take steps to ensure compliance with lead-based paint regulations in future renovation projects, address lead-based paint hazards at high-risk homes in Waco…and educate the public to lead-based paint hazards and appropriate renovation procedures.”

Within 90 days, Magnolia must also produce a video featuring Chip Gaines about renovation of homes that contain lead-based paint and post the video to its website and social media sites.

The investigation that led to the settlement started after the agency reviewed video of the renovation of older homes from several seasons of the hit HGTV show “Fixer Upper” that “did not depict the lead-safe work practices” required by the agency’s Repair and Painting Rule.

After the agency contacted Magnolia, “the company took immediate steps to ensure compliance with the RRP Rule, including to obtain RRP certification and training for the firm and its staff and to ensure active compliance across all ongoing renovation projects.”

With Magnolia’s cooperation, the EPA “found evidence of noncompliance at renovations of 33 properties,” the agency said in an administrative complaint filed on Nov. 29, 2017.

Among the violations were failure to obtain EPA certification before performing renovations covered by the RRP Rule, failure to assign a certified renovator to such projects, failure to provide homeowners or residents with an approved pamphlet about lead-based paint hazards, failure to post signs defining the work area and warning people to remain outside of it, and failure to comply with RRP Rule practices such as closing doors and windows in interior work areas and using plastic sheeting to cover other openings and to capture falling paint chips from exterior renovations.

“It’s important that consumers and contractors understand that improper home renovation can expose residents and workers to hazardous lead dust,” said EPA Office of Enforcement and Compliance Assurance Assistant Administrator Susan Bodine.

“Through this settlement, Magnolia is putting in place safeguards to ensure the safety of its renovation work and making meaningful contributions toward the protection of children and vulnerable communities from exposure to lead-based paint.”

The final episode of the reality television show aired on April 3 after five seasons.