fix selected index