fix issue that the multi-select sometimes doesn't work