The Buddhist scripture gathering team encounters a strange red fog when passing through Daoxuan Ridge. Tang Monk and Bajie fall into coma in the fog. After waking up, Tang Seng found that he was thinking about Gao Laozhuang's old lover, and Bajie began to seriously discuss the essence of Buddhism. Faced with this dilemma of "inverted cause and effect", Sun Wukong discovered that he must hold a "righting ceremony" in the twin caves within three days, otherwise his souls will be permanently exchanged. Bajie, who is eager to recover, accidentally leaks Tang Monk's past life memories, triggering a crisis of trust between master and disciple. In the end, by the karma fire stream, Tang Seng, who has the character of Bajie, faces his inner desires, while Bajie, who has the heart of Buddha, suddenly realizes the "true meaning of the precepts", and the two complete the ceremony through complementary understandings. This mismatch allowed Tang Seng to learn to tolerate the weaknesses of human nature, and Bajie truly understood the value of the commandments.