fixed progress display off by one