Corrected a mistake on algorithm choice