corrected progress calculation
fixed progress display for repeated numbers