At last progress bar works.