Fixed an off-by-one error in the handling of --max-delete=N.