When he was around 17, to escape arrest he went to live with an acquaintance Gentleman Chang (常氏) in Huguan close to Luzhou (潞州, modern Changzhi, Shanxi), shortly before joining the army of Luzhou's interim regent (留後) Li Jitao.