By this time, however, Yao was himself nearly caught in a scandal involving his sons' trying to influence the civil service system. Yao's fellow chancellor Wei Zhigu had previously been a subordinate of Yao's who had become progressively promoted to become chancellor with Yao. Yao had once offended Wei because he asked Wei to review the civil service commissions at Luoyang—but then had Song Jing, who was then the minister of civil service affairs, carry out a further review of Wei's actions. Meanwhile, while Wei was at Luoyang, two sons of Yao's, who were officials at Luoyang, because of the relationship that Yao and Wei previously had, accepted bribes from others and tried to influence Wei in his actions. After Wei returned to Chang'an, he reported this to Emperor Xuanzong—who then, on another occasion, tried to discreetly figure out the situation by asking Yao about his sons—and Yao, realizing what must have happened, indicated that it must be the case that his sons improperly tried to influence Wei. Emperor Xuanzong, in turn, became impressed that Yao was willing to admit this and displeased that Wei had tried to remove a former superior, initially wanting to exile Wei. At Yao's insistence that that not happen, he only removed Wei as a chancellor and made him the minister of public works (工部尚書, "Gongbu Shangshu").