fix bugs for country search