Fix nesting view behavior when multiple views exist