Fix the problem progressbar doesnot run.