Obama admits errors over cabinet