correction of fit and min/max values