Small fix so that selectedIndex matches with the row when delegate method is called