 Emperor Gaozu spared Wang Shichong, but publicly executed Dou.When Dou's generals, who had already previously surrendered or hid themselves in the countryside, heard about Dou's death, they rebelled under the leadership of Liu Heita, who publicly mourned Dou and was eventually able to take back all of Xia territory, but eventually was defeated first by Li Shimin and then by Li Shimin's older brother Li Jiancheng and killed in 623.Liu Xu, the lead editor of the "Old Book of Tang" who, despite his writing the work during Later Jin was writing from a Tang perspective, nevertheless commented