diff --git a/core/FrontController.php b/core/FrontController.php
index cff68dd7c1ab23524a775bfc37d3cf200e92d689..53227f886a30d48f42d30fa8a0d22264bf4858c6 100644
--- a/core/FrontController.php
+++ b/core/FrontController.php
@@ -153,6 +153,9 @@ class FrontController extends Singleton
         // if nothing returned we try to load something that was printed on the screen
         if (empty($output)) {
             $output = ob_get_contents();
+        } else {
+            // if something was returned, flush output buffer as it is meant to be written to the screen
+            ob_flush();
         }
         ob_end_clean();
         return $output;