bugfix in progress bar