Fixes enclosure problem