After Dayongzhang and Emperor Xiao Jingyan ascended the throne for three years, the government gradually relaxed, treacherous eunuchs secretly formed alliances with their relatives, and the government was worried. One night, I dreamed that a hundred years later, I saw the palace collapsed and the people displaced. The historian wrote, "Emperor Zhang He indulged in leisurely pleasures, which led to the decline of the Yong room." He woke up sweating through his heavy clothes.
From then on, Xiao Jingyan stopped the banquet and went to the government. Taking what he saw in his dream as a guide, he identified the loyal scholars Lin Wenyan and other loyal scholars and entrusted them with important tasks. He also set up a secret investigation to find out the evidence that the eunuch Wei Zhongxian colluded with his uncle to embezzle military pay and framed Zhongliang. His crime was exposed in court, and he was jailed and executed, which shocked the government and the public. After that, he rectified the administration of officials and neglected corvee and tax, which finally restored Dayong's renaissance.