In Friends, S07E15: The one with Joey's new Brain, Joey explains to his friends that his character, Dr Drake Ramoray is getting a brain transplant and will be receiving Jessica Lockhart's brain. Ross clarifies that after the transplant, It will be Jessica in Drake's body and Joey confirms this.
However, in S08E05: The one with Rachel's date, Joey takes Rachel to the studio where they are shooting Days of our lives and we see Joey playing a scene with his co-star who is explaining that Drake's body is rejecting Jessica's brain. In this scene, it appears as if Joey is playing Drake rather than Jessica. He is seen wearing a Doctor's coat and also acts and talks like Drake. He seem's to understand the Doctor's "medical" explanation and responds by saying,
That seems simple enough, why don't we just do that?
Also, the co-actor in the scene, who is also a doctor, refers to Jessica in third person, while technically, Jessica is standing right in front of him, in Drake's body.
Does this plot within a plot, have a plot hole?