Further fixing of progress_bar()