fix containment bug