Fixed some issues related to the index of the selected item or items after the removed item in the dropdown list.