bug fix: progress bars with too few elements were wrongly displayed