fixing multiselect bug