Zhuye Zhiyi was able to make it through to Tang's Ling Prefecture (靈州, in modern Yinchuan, Ningxia), where the Tang military governor (Jiedushi) of Shuofang Circuit (朔方, headquartered at Ling Prefecture), Fan Xichao (范希朝), welcomed the Shatuo under Zhuye Zhiyi.
In 839, after a rebellion by the officials Anyunhe (安允合) and Chaile (柴勒), Zhangxin Khan was able to defeat and kill them, but a subsequent attack by another official, Jueluowu (掘羅勿), along with the Shatuo chief Zhuye Chixin, defeated Zhangxin Khan, and Zhangxin Khan committed suicide.