fixes ttl str to int conversion