Fixed selectNearby()