 As Li Keyong's forces approached Chang'an, Tian escorted Emperor Xizong and fled again, initially to Fengxiang and then to Xingyuan when Zhu and Li Changfu also turned against him.During this flight, with Emperor Xizong's flight path blocked by waves of refugees, Wang Jian and Jin cleared the path, killing all in their way, to allow Emperor Xizong through, and during the confusion, Emperor Xizong had Wang Jian bear the imperial seal, and at night slept on Wang Jian's knees.With Tian realizing that the whole empire was against him by this point, he resigned while Emperor Xizong was at Xingyuan, recommending Yang Fuguang's brother Yang Fugong to succeed him as the commander of the Shence Armies, while having himself commissioned as the eunuch monitor of Xichuan Circuit (西川, headquartered at Chengdu) to join his brother Chen Jingxuan the military governor of Xichuan.