fix AttributeError: 'function' object has no attribute 'get_item'