fix the progressbar