Fix crash in non-containment case.