fix some bugs of multi-select