revert to max_seq with bug fixes for TriggerTheBestHypotheses