diff --git a/src/bbn/mvc.php b/src/bbn/mvc.php
index <HASH>..<HASH> 100644
--- a/src/bbn/mvc.php
+++ b/src/bbn/mvc.php
@@ -777,7 +777,10 @@ class mvc
 					$this->obj->postscript = \JShrink\Minifier::minify($this->obj->postscript);
 				}
 			}
-			
+      if ( !isset($this->obj->output) ){
+        header('HTTP/1.0 404 Not Found');
+        exit();
+      }			
 			switch ( $this->mode ){
 				
 				case 'json':
@@ -796,15 +799,6 @@ class mvc
 					break;
 				case 'dom':
 				case 'html':
-				case 'js':
-				case 'text':
-				case 'xml':
-					if ( !isset($this->obj->output) ){
-						header('HTTP/1.0 404 Not Found');
-						exit();
-					}
-				case 'dom':
-				case 'html':
 					if ( !ob_start("ob_gzhandler" ) ){
 						ob_start();
 					}
discovered a new stuff in switch statements... Argh!