The Southern Song only ruled half of China, like Shu Han, Eastern Jin, and the southern dynasties in the past, only enjoying "patial peace" (偏安). In Zhang Shi's Biography of Zhuge Liang, Zhang praised Zhuge for his loyalty to Shu Han among the three kingdoms and strongly upheld its legitimacy. At the same time Zhu Xi wrote Outlines of Zizhi tongjian in which he revised Sima Guang's Zizhi tongjian by changing legitimacy from Wei to Shu Han. Like Zhu Xi, Xiao Chang was not satisfied with History of the Three Kingdoms because its writer Chen Shou considered Wei as the legitimate state. Xiao spend 20 years to write A Continuation of the History of Latter Han, in which he also upheld Shu Han as the legitimate state, dismissing Wei and Wu as illegitimate regimes. In 1260, Khubilai sent his envoy Hao Jing to the Southern Song, but Hao was detained by Song officials. During the 15 years in detainment, Hao read dynastic histories, zizhi tongjian and Outlines of tongjian. He wrote another A Continuation of the History of Latter Han, in which he assigned legitimacy to Shu Han. Following Zhu Xi and Xiao Chang, the history of the three kingdoms was repeatedly rewritten in the same manner during the Yuan and Ming periods.