Prince of Sui, and despite Wang's urging that the matter proceed quickly, Emperor Wen hesitated between Liu Shuo and Liu Hong (劉宏) the prince of Jianping. Meanwhile, despite the secrecy of the discussions, Emperor Wen told Consort Pan about the discussions, and she quickly informed Liu Jun, who then informed Liu Shao. Liu Shao therefore planned a coup against his father. Despite the opposition of Liu Shao's associate Yuan Shu (袁淑), the other associates supported Liu Shao's plan, and it proceeded. Liu Shao, after forging an edict from Emperor Wen stating that his troops were to enter the palace to help guard against a rebellion, took over the defense of the palace, and he sent his guard Zhang Chaozhi (張超之) into Emperor Wen's bedchamber to assassinate him. Liu Shao also had Xu, Jiang, Consort Pan, and a number of other associates of Emperor Wen put to death. Liu Jun soon joined him at the palace, and the brothers then falsely announced that Emperor Wen had been killed by Xu and Jiang. Liu Shao then took the throne. During the coup, Liu Jun was initially outside the city. When news of the coup came, his staff members, not knowing that Liu Jun was involved as well, suggested that he occupy Shitou, a fortress west of the city, and observe what the situation was. Liu Jun, unsure whether Liu Shao had succeeded, agreed. Later, however, when he got to Shitou, Liu Shao sent Zhang Chaozhi to meet him and explain what the situation was, and Liu Jun left Shitou to join Liu Shao in the palace, despite opposition of his staff, and openly showed his support for Liu Shao. When Liu Shao told him that Consort Pan had been killed, he even stated, "That is in accordance with my desire. I have long wished for it." During Liu Shao's brief reign Most of the imperial princes and provincial governors quickly rose against Liu Shao, supporting Liu Jun the Prince of Wuling as their leader, and he, while the war was still ongoing, took the throne as Emperor Xiaowu. Liu Shao made Liu Jun the Prince of Shixing his prime minister, and they faced the rebellion together. Liu Shao also made Liu Jun's father-in-law Chu Danzhi (褚湛之) a key official, although Chu later defected to the rebels. (In response to this, Liu Jun divorced his wife Princess Chu.) Later, after Liu Shao's forces