fix minMax
fix minMax