fix the failure selection for best matching + atMost case