Bugfix: exception when active_view is None