fix Bug to progress bar