Overcoming the Troubles of Selective Learning