fix small memory leak.
update ttl (fix default value & trigger-mode range)