fixed issues with progress bar