Fix bug that was causing first reference selection after 'ALL' selected to not sample.  (wrong index for selection).