Sanitize max height value