FIX: selected diversity was off by one (PR #10659)

GitHub