TypeError: Cannot read property 'ttl' of undefined

fix