prevent progress ration from being negative.