diff --git a/pandora_console/include/graphs/flot/pandora.flot.js b/pandora_console/include/graphs/flot/pandora.flot.js
index 624da0e7a2..5bd1f6893a 100644
--- a/pandora_console/include/graphs/flot/pandora.flot.js
+++ b/pandora_console/include/graphs/flot/pandora.flot.js
@@ -918,13 +918,7 @@ function pandoraFlotArea(graph_id, values, labels, labels_long, legend,
 			//~ { color: criticalw, yaxis: { to: -1 } }
 		//~ ];
 		
-		lineWidht = $('#hidden-lineWidhtGraph').val();
-		if (typeof(lineWidht)=='undefined') {
-			WidhtLine = 1;
-		}
-		else {
-			WidhtLine = lineWidht;
-		}
+		var lineWidth = $('#hidden-line_width_graph').val() || 1;
 
 		// Data
 		data_base.push({
@@ -939,7 +933,7 @@ function pandoraFlotArea(graph_id, values, labels, labels_long, legend,
 				fillColor: {
 					colors: [ { opacity: 0.9 }, { opacity: 0.9 } ]
 				},
-				lineWidth: WidhtLine,
+				lineWidth: lineWidth,
 				steps: steps_chart
 			},
 			points: { show: points_show }
diff --git a/pandora_console/include/graphs/functions_flot.php b/pandora_console/include/graphs/functions_flot.php
index 9f84678006..209a12f84a 100644
--- a/pandora_console/include/graphs/functions_flot.php
+++ b/pandora_console/include/graphs/functions_flot.php
@@ -216,7 +216,6 @@ function flot_area_graph($chart_data, $width, $height, $color, $legend,
 		if ($threshold) {
 			$nbuttons++;
 		}
-		$return .= html_print_input_hidden ('lineWidhtGraph', $config['custom_graph_width'],true);
 		$menu_width = 25 * $nbuttons + 15;
 		if ( $dashboard == false AND $vconsole == false) {
 			$return .= "<div id='menu_$graph_id' class='menu_graph' " .
@@ -241,6 +240,7 @@ function flot_area_graph($chart_data, $width, $height, $color, $legend,
 			$return .= "</div>";
 		}
 	}
+	$return .= html_print_input_hidden('line_width_graph', $config['custom_graph_width'], true);
 	$return .= "<div id='timestamp_$graph_id' class='timestamp_graph' style='font-size:".$font_size."pt;display:none; position:absolute; background:#fff; border: solid 1px #aaa; padding: 2px; z-index:1000;'></div>";
 	$return .= "<div id='$graph_id' class='graph $adapt_key' style='width: ".$width."px; height: ".$height."px;'></div>";
 	if ($menu) {
diff --git a/pandora_console/operation/reporting/graph_viewer.php b/pandora_console/operation/reporting/graph_viewer.php
index c36495eb40..1b2b071125 100644
--- a/pandora_console/operation/reporting/graph_viewer.php
+++ b/pandora_console/operation/reporting/graph_viewer.php
@@ -116,7 +116,7 @@ if ($view_graph) {
 		include ("general/noaccess.php");
 		exit;
 	}
-	html_print_input_hidden ('lineWidhtGraph', $config['custom_graph_width']);
+	html_print_input_hidden ('line_width_graph', $config['custom_graph_width']);
 	html_print_input_hidden ('custom_graph', 1);
 	$url = "index.php?" .
 		"sec=reporting&" .