fixed problem when progress bar is too long