Make sure progress indicator value is never larger than 100