 Her ally Shi Miyuan rose in rank and eventually became grand chancellor.Shi Miyuan had a girl placed as a spy with the designated crown prince of the emperor, and in 1223, she reported that the crown prince was planning to depose him when he became emperor.When Emperor Ningzong died in 1224, Shi Miyuan wished to have another of the Imperial princes, Zhao Yun, placed on the throne instead.