Adjust min and max