Fix range check bug in get-villagers