Fix bug for the seledtedIndex normal.