change progressbar measurements format
avoid progress bar jump from 90% to 100% when using wait: false