During the negotiations on the Polish-Soviet border agreement of August 1945, alongside the Polish-Ukrainian section of the border the Polish side proposal was categorically rejected. Due to this, the Polish side proposed a more modest changes, namely to transfer the railway junction in Khyriv (Polish: Chyrów) to Poland, in which two parallel main lines of national importance were connected. At the same time, Rava-Ruska was requested. In this town, located near the Curzon Line, three Polish railway lines and one Ukrainian converged. Polish requests were completely rejected, only managed to slightly shift the border to the east near Przemyśl, Korczowa and Horyniec-Zdrój. The Soviets also agreed to let Medyka to be on the Polish side. The Bieszczady County was also obtained, thanks to the efforts of Stanisław Leszczycki during the negotiations, covering about 300 square km with Halicz and Tarnica peaks.