tried to fix progress bug