After acquiring the role and before Friends aired , Aniston was temporarily at risk of being recast because she had also been involved with another sitcom , Muddling Through , at the time , which was ultimately canceled and allowed Aniston to remain on Friends .
Rachel Green was played by Courtney Cox .