Fixed issues with progressbar.