Support min and mx res correctly