handle the case where length of idx in least_angle greater than one