fixed selectindex