fix recent regression on selection