Actor John Stamos has said he is okay with a gay joke recently edited out from a promo for the NBC sitcom The Office.

In the original promo which aired two weeks ago, Andy (played by Ed Helms) claims he's gay in order to break up with his girlfriend and begin dating another girl.

“I'm gay,” Andy says in the clip. “I had to fake it. I had to imagine that I was in a steam room with John Stamos.”

Celebrity website TMZ.com reported that Stamos' name was cut the next day from the promo.

Andy now says, “I'm gay. I had to fake it. I had to imagine that I was in a steam room with cool guys.” (Watch both promos at TMZ.com)

“They thought that I'd be offended by the gay joke,” Stamos said. “But apparently, a week before, they didn't see me kiss a man at the GLAAD Awards.”

Stamos did kiss a man for charity. Here's the video.