fix ttl support