 After the two emperors were buried, he was given the honorific title of "Guanglu Daifu" () and created the Duke of Wei.In 764, Emperor Daizong made him the deputy minister of defense again (now with the title "Bingbu Shilang" () and gave him the designation "Tong Zhongshu Menxia Pingzhangshi" (), making him a chancellor "de facto".He was soon also made "Zhongshu Shilang" (), the deputy head of the legislative bureau.