Make sure the progress never exceeds 1.0.