Fix regression on selecting items.