Fixed progressbar generation