Misha Barton says it was a bungled wisdom tooth procedure that caused her to be admitted into a psychiatric hospital last month.

The 23-year-old, currently shooting the CW series  "The Beautiful Life" in New York, was removed from her home in L.A. and admitted to Cedars-Sinai Medical Center in July.

“Before the show started, I was traveling abroad for contract stuff, and I went through a terrible surgery — a wisdom tooth surgery, all four removed. It was a nightmare,” Barton, who holds an Irish passport,  told Time Out New York.

"I've never had surgery before — it all went wrong and I had to have a second surgery and it almost delayed shooting because it was a nightmare to me, because I couldn't deal with the thought of not getting there on time."

"I went through a tough spot where everything compounded on me, and it was like a perfect storm, like everything was happening to me at once," Barton said. "I was down in the dumps about everything there for a while."

Barton, best known for playing Melissa Cooper on "The O.C.," is now the star of "The Beautiful Life," a new teen drama.

Barton’s health issues caused a delay in the taping of the show, but the series is set to premier on the CW channel on September 16.