Fix setting of algorithm when only alg name supplied