The country setting gets lost whenever the user changes the application language because InvoicePlane saves the country name and not the language-invariant country code. Using the country code (key $cldr in array $countries) in the user- and general-settings forms fixes the bug.