Fix incorrect default
Fix sample group not being set when the selected sample index is changed
from the view tab.