enclosure method called on wrong objects