minor fixes in progress bar helper