Correctly use run loop in ProgressView.