Make multi-select with pagination work