Fix uses of ttl