By spring 780, With Cui Youfu seriously ill at that point and Qiao having been removed by Emperor Dezong due to incompetence, Yang was solely in charge of the government, and he revived major military projects that Yuan had advocated until his downfall—to rebuild Yuan Prefecture (原州, in modern Guyuan, Ningxia), formerly Tang territory but which had become part of the no man's land between territories held by Tang and Tufan, as a forward advance base for a campaign to recapture lands lost to Tufan; and to conscript labor from the regions of the two capitals (Chang'an and Luoyang) and Guanzhong to reopen Lingyang Aqueduct (陵陽渠, flowing through Bayan Nur, Inner Mongolia) in order to promote agriculture in the region by soldiers. When Duan Xiushi, the military governor of Jingyuan Circuit (涇原, headquartered in modern Pingliang, Gansu) opposed the projects on account that it would provoke a Tufan attack, Yang, angered by Duan's opposition, had Duan recalled to the capital to serve in the relatively powerless post as minister of agriculture. When the disciplinarian general Li Huaiguang was subsequently named to succeed Duan, Duan's soldiers, fearing Li Huaiguang's harshness, rebelled under the leadership of the officer Liu Wenxi (). While Liu was quickly killed by his own subordinates, and the rebellion dissipated, neither Yuan Prefecture nor Lingyang Aquedate was actually ever rebuilt.