progress bar never divides by 0