fix a bug in ProgressView that will add a split bigger than max progress