diff --git a/html/pages/device/alert-stats.inc.php b/html/pages/device/alert-stats.inc.php
index 8c5eaaf79..ab9a0c57f 100644
--- a/html/pages/device/alert-stats.inc.php
+++ b/html/pages/device/alert-stats.inc.php
@@ -9,5 +9,5 @@
* option) any later version. Please see LICENSE.txt at the top level of
* the source code distribution for details.
*/
-echo "
";
+
require_once 'includes/print-graph-alerts.inc.php';
diff --git a/html/pages/device/alerts.inc.php b/html/pages/device/alerts.inc.php
index bdde37582..ef355a841 100644
--- a/html/pages/device/alerts.inc.php
+++ b/html/pages/device/alerts.inc.php
@@ -11,6 +11,5 @@
* option) any later version. Please see LICENSE.txt at the top level of
* the source code distribution for details.
*/
-
require_once 'includes/common/alerts.inc.php';
echo implode('',$common_output);
diff --git a/html/pages/device/edit/alerts.inc.php b/html/pages/device/edit/alerts.inc.php
index 1465b686b..7320c94fc 100644
--- a/html/pages/device/edit/alerts.inc.php
+++ b/html/pages/device/edit/alerts.inc.php
@@ -107,4 +107,4 @@ require_once 'includes/modal/new_alert_rule.inc.php';