selectedindex fix