This fixes #8353.  I changed how it selected the first index.