 However, the news leaked, and the general Yuan Yan (元儼) closed the city gates and prevented the crown prince from leaving.Once Emperor Xiaowen returned to the capital, he, along with his brother Yuan Xi (元禧) the Prince of Xianyang, caned Yuan Xun more than 100 times, and then imprisoned him.About one and a half months later, Emperor Xiaowen deposed Yuan Xun and demoted him to commoner rank, changed his courtesy name to Xuandao and put him under house arrest with minimal supplies.