loop ready progressbar not working