Fix glitch when sorting countries