fix: should change a ttl argument to -1 if it is not larger than 0.