Fixed off-by-one error with progress bar in single file mode