Fix a case where the active view's content could get lost