fix ttl detection logic, min is not reliable