Fixed Progress bar showing in loops.