fix bug: AttributeError: 'LRU' object has no attribute 'items'