fixed error in max_length_stopper