Los Angeles: Actress Jennifer Aniston, who played Rachel Green in the popular sitcom ‘Friends’ between 1994 and 2004, says she was almost replaced just before the show got aired.

Speaking at the Santa Barbara International Film Festival, the 45-year-old actress said that producers were thinking of recasting the role of Rachel Green because of Aniston’s commitment to the short-lived series “Muddling Through”, reports dailymail.co.uk.

“‘Friends’ came when I was off doing ‘Muddling Through’,” Aniston said.

“So there was a period where I had to stand out of the photographs for the group shots, and I had phone calls from girlfriends saying, ‘I’m auditioning for your part in ‘Friends',” she added.

However, ‘Muddling Through’ only lasted for three months in 1994.

“They just took the chance that ‘Muddling Through’ would fail after the 10 episodes they picked it up for, and so I just started doing this back-and-forth from Sony to Warner Bros for two weeks,” Aniston said.