fixed bug in progress bar