Fixing priority countries not being considered.