fix minColorRatio calculation