off-by-one error with --early-stop-delay