Thread fix. Progress bar problem.