diff --git a/html/includes/graphs/bgp/prefixes.inc.php b/html/includes/graphs/bgp/prefixes.inc.php
index 56aca061a..462cd5a70 100644
--- a/html/includes/graphs/bgp/prefixes.inc.php
+++ b/html/includes/graphs/bgp/prefixes.inc.php
@@ -15,6 +15,11 @@ $graph_max = 1;
$unit_text = "Prefixes";
-include("includes/graphs/generic_simplex.inc.php");
+if($config['old_graphs'])
+{
+ include("includes/graphs/old_generic_simplex.inc.php");
+} else {
+ include("includes/graphs/generic_simplex.inc.php");
+}
?>