Fix problem with select2 query