Fix select2 behaviour

#3861