fix in case ttl is not defined