Fix infinite loop in GetClientsInRange.