fix for infinite ttl on 0