fix:'ttl' of undefined

TypeError: Cannot read property 'ttl' of undefined