Later that year, Emperor Gaozu, troubled by repeated Eastern Tujue incursions, seriously considered burning Chang'an to the ground and moving the capital to Fancheng, a suggestion that Li Jiancheng, Li Yuanji, and Pei Ji agreed with.
In summer 626, Eastern Tujue was making another attack, and under Li Jiancheng's suggestion, Emperor Gaozu, instead of sending Li Shimin to resist Eastern Tujue as he first was inclined, decided to send Li Yuanji instead.