This is an archived article and the information in the article may be outdated. Please look at the time stamp on the story to see when it was last updated.

(WJW/AP) — Bill Cosby’s former TV wife, Phylicia Rashad, responded shortly after news that the actor’s sex assault conviction was vacated Wednesday with: “FINALLY!!!”

“A terrible wrong is being righted- a miscarriage of justice is corrected,” she continued in a Tweet.

Pennsylvania’s highest court overturned Cosby’s sex assault conviction Wednesday after finding an agreement with a previous prosecutor prevented him from being charged in the case. He was released from prison later in the day.

Cosby has served more than two years of a three- to 10-year sentence at a state prison near Philadelphia. He had vowed to serve all 10 years rather than acknowledge any remorse over the 2004 encounter with accuser Andrea Constand.

The 83-year-old Cosby, who was once beloved as “America’s Dad,” was convicted of drugging and molesting the Temple University employee at his suburban estate.

Rashad, who played Clair Huxtable on “The Cosby Show,” has maintained her support for the actor.

After he was charged in late 2015, she told Showbiz 411 she didn’t see any indication of the behavior women attributed to the legendary actor.

“What you’re seeing is the destruction of a legacy,” she said at the time. “And I think it’s orchestrated. I don’t know why or who’s doing it, but it’s the legacy. And it’s a legacy that is so important to the culture.”

The actress said she loved Cosby and defended his wife, saying there was no way Camille Cosby would stand for such behavior from her husband of 50 years.

She also spoke on the legacy of the beloved show that cemented her and Cosby as one of TV’s favorite couples.

“This show represented America to the outside world,” she said. “This was the American family. And now you’re seeing it being destroyed. Why?”

The Associated Press contributed to this report