Fix a bug in Output.progress_generator