Tom Hanks cursed on live television on Friday when he appeared on Good Morning America. The actor was on the show to promote his latest film, "Cloud Atlas."

In the interview, Hanks is asked to speak in an accent, and Hanks jokes that sometimes swear words can be an issue when he speaks that way. Hanks then started talking in the accent and accidently dropped an f-bomb.

Immediately, both Hanks and his interviewer realize the mistake.

"I'm sorry," Hanks said. "I slipped into a brand of acting. I have never done that before. I want to apologize to the kids in America who are watching this right now."

According to the Associated Press, "Cloud Atlas" stars Hanks along with Halle Berry, Hugh Grant, Susan Sarandon and others. The film connects stories from various centuries and requires the actors to play multiple characters. It includes scenes and stories from 1973 San Francisco, present-day London, and an apocalyptic Korea in 2144, according to Entertainment Weekly.

Hanks, for instance, plays a doctor in 1849 and a murderer in the present day.

The actors thus had to shoot scenes on various sets in different countries. They also had to deal with different directors. Siblings Lana and Andy Wachowski, known for 'The Matrix' trilogy, worked on the 1849 and futuristic sections of the film, while German Tom Tykwer directed the scenes from the 1930s, the 1970s and present day.

The film premiered at the Toronto Film Festival, where it received mixed reviews, according to Reuters. Some felt that the plot was too complex for people who did not read the book on which the film is based.

However, Entertainment Weekly reports that the cast and crew received a 10-minute standing ovation after the Toronto premiere.

"The movie really speaks to human courage," Lana Wachowski told the crowd that day. "The reason we're here is because of the courage and talent of this unbelievable cast."

The $100 million film opens in U.S. theaters next Friday.

Watch the clip from Hanks' interview below. The curse occurs around 14 seconds in.