Fix patch of _AttributeDict