fix minranges