a Taoist temple, Li Linfu used these incidents to accuse Wei and Huangfu of secretly pledging allegiance to Li Heng and planning to remove Emperor Xuanzong to replace him with Li Heng. Wei and Huangfu were arrested and interrogated by Yang, Wang Hong (), and Ji Wen (), but Emperor Xuanzong, who did not want the case to further explode into a major incident although he believed Li Linfu's accusations, demoted Wei and Huangfu out of the capital and, for the time being, stopped the investigation. However, when Wei Jian's brothers Wei Lan () and Wei Zhi () submitted a defense of their brother Wei Jian later in 746—and the defense cited words from Li Heng—Emperor Xuanzong was incensed. Li Heng, in fear, divorced Crown Princess Wei and asked for the Wei brothers to be punished. The Wei brothers, along with a number of their associates—including the former chancellor Li Shizhi, Wei Bin (), Wei Jian's nephew Li Quan () the Prince of Xue, Pei Kuan (), and Li Qiwu (), were all demoted. (In 747, at Li Linfu's instigation, the Wei brothers, Huangfu, and Li Shizhi were all forced to commit suicide.) Later in 746, yet another incident again nearly brought disaster to Li Heng. One of Li Heng's other consorts, Consort Du, was a daughter of the official Du Youlin (). Consort Du's brother-in-law Liu Ji () had a dispute with the Du family and falsely accused them of using witchcraft in favor of Li Heng. Li Linfu had Ji Wen interrogate Liu, and Ji implicated Liu in the alleged plot as well. Du Youlin, Liu, and Liu's friend Wang Zeng () were all caned to death, and Li Heng felt compelled to expel Consort Du from the household as well. Li Linfu also used this case to have two other officials friendly with Liu, Li Yong () and Pei Dunfu (), executed by caning. In 747, when one of Emperor Xuanzong's favorite generals, An Lushan, visited the capital Chang'an to pay respect to Emperor Xuanzong, An, who was not Han, initially refused to bow to Li Heng—pretending that he was only loyal to Emperor Xuanzong and to no one else, including the crown prince, and that he did not even know what a crown prince was. Only after Emperor Xuanzong explained what a crown prince is—the reserve emperor, to succeed him later—was An willing to bow to