bug fix for ProgressIndicator