fixed ttl check for non expiring entries