Latvia states of Northern and Eastern Europe were divided into German and Soviet "spheres of influence". In the north, Latvia, Finland and Estonia were assigned to the Soviet sphere. A week later, on 1 September 1939, Germany and on 17 September, the Soviet Union invaded Poland. After the conclusion of the Molotov-Ribbentrop Pact, most of the Baltic Germans left Latvia by agreement between Ulmanis' government and Nazi Germany under the Heim ins Reich programme. In total 50,000 Baltic Germans left by the deadline of December 1939, with 1,600 remaining to conclude business and 13,000 choosing to remain in Latvia. Most of
Finland–Sweden border in a topographical description made in 1811. The border was decided to run through the geographical centre of the island (defined by coordinates) in the treaty of Åland in 1921 and in the treaty of continental plates in 1972. The Märket lighthouse, built in 1885 by Finland and operated by them, was left on the Swedish side. In 1981, the border on the island was modified into a curve to get the lighthouse on the Finnish side. The border is agreed to be regularly inspected every 25 years. During the independence of Finland, inspections have been made in 1926–1927, 1956–1957,