Fix selecting dialog