Stephen Collins has been cut from the movie Ted 2 after a recording surfaced today in which he admits to molesting several young children, EW has learned exclusively.

The sequel to Seth MacFarlane’s trash-talking teddy bear comedy is currently in production, and Collins—best known as the minister father in the 1996-2007 WB drama 7th Heaven—had a small role in the film, according to sources close to the project.

Although the 67-year-old actor has not yet been charged with a crime, the recording of him admitting to the crimes (first published on TMZ) and the police investigation that has since been launched were enough to lead MacFarlane and Universal Pictures to immediately end his involvement in the movie.

Representatives for the film confirmed the firing, but the filmmakers declined to comment beyond that. (Reps for Collins did not immediately respond.)

It’s not clear what part Collins was performing, or whether it had even been shot yet, but reps for the film say it is small enough to remove without any major disruption or rewrites of the project.

Collins had never been officially announced as a part of the movie, but rumors had leaked of his involvement. The actor himself teased fans about his part in the movie. When asked recently about the character he was playing, Collins tweeted on Saturday: “I’d tell you but @SethMacFarlane would have to kill me.”

One possible connection between the actor and the filmmaker: The Family Guy creator is a renowned Star Trek aficionado, and Collins played a significant role in 1979’s Star Trek: The Motion Picture as Will Decker, the man who takes over as captain of the Enterprise after James Kirk is promoted to Starfleet admiral.