Update progress indicator correctly.