capped progress bar at 100%