do not display a progress bar if length = 0