diff --git a/pandora_console/godmode/agentes/agent_template.php b/pandora_console/godmode/agentes/agent_template.php
index 3ebd4d7c1d..c5c3aca25d 100644
--- a/pandora_console/godmode/agentes/agent_template.php
+++ b/pandora_console/godmode/agentes/agent_template.php
@@ -81,6 +81,7 @@ if (isset ($_POST["template_id"])) {
 				'plugin_user' => $row2["plugin_user"],
 				'plugin_pass' => $row2["plugin_pass"],
 				'plugin_parameter' => $row2["plugin_parameter"],
+				'unit' => $row2["unit"],
 				'max_timeout' => $row2["max_timeout"],
 				'max_retries' => $row2["max_retries"],
 				'id_plugin' => $row2['id_plugin'],
diff --git a/pandora_console/godmode/modules/manage_network_components_form_network.php b/pandora_console/godmode/modules/manage_network_components_form_network.php
index 3e51d24b36..abd5d842d0 100755
--- a/pandora_console/godmode/modules/manage_network_components_form_network.php
+++ b/pandora_console/godmode/modules/manage_network_components_form_network.php
@@ -113,7 +113,9 @@ push_table_row ($data, 'tcp_receive');
 	
 	function validate_post_process() {
 		var post_process = $("#text-post_process").val();
-		var new_post_process = post_process.replace(',','.');
-		$("#text-post_process").val(new_post_process);
+		if (post_process != undefined){
+			var new_post_process = post_process.replace(',','.');
+			$("#text-post_process").val(new_post_process);
+		}
 	}
 </script>