fixed progress bar issues