After Roseanne Barr’s racist comment caused the cancellation of her hit ABC show, Barr had an unusual defense, blaming the insomnia medication Ambien.

Ambien’s manufacturer, Sanofi SNY, +1.50% CH:SAN, however, quickly denied any role in the controversy and emphasized its commitment to diversity early Wednesday.

Ambien has long been sold to help induce sleep, and it’s particularly popular in the U.S. Once a blockbuster, the drug’s sales have dropped in recent years as it has faced generic competition, and it brought in about $320 million in revenue last year.

Read: ‘Roseanne’ canceled by ABC after its star attacks Obama ally Valerie Jarrett with racist tweet

Like other widely used sleeping pills, the brand is known to have some strange, though rare, side effects, commonly after drinking alcohol or taking other medicines that make users sleepy.

The drug’s label warns that side effects may include “getting out of bed while not being fully awake and [doing] an activity that you do not know you are doing.”

See: How America has changed since ‘Roseanne’ premiered in 1988

Perhaps most notoriously, patients have reported driving while asleep. Other such issues have included sleepwalking and other unconscious nighttime activities, such as cooking and eating, having sex and talking on the phone.

In the Elevator With Arianna Huffington

The list of reported activities, as Sanofi noted, does not include racism, or tweeting, though “abnormal thinking and behavior changes” have been reported, the drug’s prescribing information notes, including “decreased inhibition (e.g. aggressiveness and extroversion that seemed out of character), bizarre behavior, agitation,” among other things.

Barr, a supporter of President Donald Trump, played a Trump supporter in the rebooted show “Roseanne,” which aimed to depict working-class Americans in a divided country. But the show has also been criticized for normalizing harmful ideologies, including around race.

But the reboot’s downfall was a Tuesday tweet by Barr that compared Valerie Jarrett, a former White House adviser to former President Barack Obama, to “Muslim brotherhood & planet of the apes had a baby.”

ABC Entertainment President Channing Dungey called the statement “abhorrent, repugnant and inconsistent with our values,” and cancelled the show.

Barr later tried to excuse her words, tweeting that “it was 2 in the morning and I was ambien tweeting - i went 2 far,” and describing what she said as “unforgiveable.”

She also claimed that it had occurred before.