correct detect default view (closes #4246)