Fix select with discrim.