It looks like your second select list is missing "Scotland" that would prevent it from selecting the correct country if the country you selected comes after scotland because it selects it by index and the indexes won't match.
For me it works if the country I select is before scotland and it will set the state as well.