Sanitize the max value if it is equal to Long.MIN_VALUE