fix enclosure length attribute missing