fixed edge race condition related to duplicate primaries.
fixed edge case where a removed server between selection and getting it could result in a long wait if more than one server matched.