Madam Secretary star Tim Daly broke both of his legs in a bad accident and now the show's writers may have to scramble and rewrite some of this season's scenes.

The actor broke his legs at Sundance in a skiing accident. Despite suffering such serious injuries, Daly kept a bit of humor when he confirmed the news via Twitter writing, "HUMANS!!! Broke my right ankle and left knee skiing. Simultaneously! How's that for talent? I'm all good."

Variety noted that Daly is said to have undergone surgery Wednesday and should need between six to eight weeks recovery time.

Meanwhile production of his hit CBS show will not be halted, but producers are discussing a number of options ranging from the writers including Daly’s injury into the show's plot or using camera tricks to shoot around it. The latter is something many shows do often when actresses become pregnant while filming and it is not part of the storyline.

Madam Secretary is in its third season. In addition to that show, Daly is also known for his work on NBC's “Wings.”