In a letter to Pope Innocent III, Andrew stated that Galician "boyars" had proposed him to grant Halych to Coloman. According to the "Galician–Volhynian Chronicle", Leszek the White was the first to suggest the same idea, also proposing his daughter, Salomea, to Coloman. Andrew and Leszek had a meeting in Szepes in the autumn of 1214. They reached a compromise, which included the marriage of Coloman and Salomea and the cession of two western Galician towns, Przemyśl and Lubaczów, to Leszek. The Hungarian and Polish armies invaded the principality and put an end to Vladislav Kormilichich's rule before the end of the year.