avoid exceptions when viewing a container view