 In fall 785, under Ma's persuasion, Xu surrendered Changchun Palace, allowing imperial troops to continue to advance to Hezhong.With Ma and Hun approaching Hezhong and Li Huaiguang's soldiers at Hezhong in a panic, Li Huaiguang committed suicide by hanging.His subordinate Niu Mingjun () cut off his head and surrendered.