Re-align selectedIndex in the spec with the implementation.