fix percentage for progress bar