Dialog selectedIndex typo