fixed bug with dialog progress