Fix printing the progress