fix multiselect code