diff --git a/content/kapacitor/v1.4/guides/anomaly_detection.md b/content/kapacitor/v1.4/guides/anomaly_detection.md
index 3ec6c2f48..c3ac8f164 100644
--- a/content/kapacitor/v1.4/guides/anomaly_detection.md
+++ b/content/kapacitor/v1.4/guides/anomaly_detection.md
@@ -239,7 +239,7 @@ What follows is the complete UDF implementation with our `info`,
 from kapacitor.udf.agent import Agent, Handler
 from scipy import stats
 import math
-import kapacitor.udf.udf_pb2
+from kapacitor.udf import udf_pb2
 import sys
 
 class TTestHandler(Handler):
diff --git a/content/kapacitor/v1.5/guides/anomaly_detection.md b/content/kapacitor/v1.5/guides/anomaly_detection.md
index 1230a8349..1a305869e 100644
--- a/content/kapacitor/v1.5/guides/anomaly_detection.md
+++ b/content/kapacitor/v1.5/guides/anomaly_detection.md
@@ -224,7 +224,7 @@ subsequent points belong to a batch.  Once the batch is complete, the
 `end_batch` method is called with some metadata about the batch.
 
 At a high level, this is what our UDF code will do for each of the
-`begin_batch`, `point`, and `end_batch` calls:
+`begin_batch`, `point`, and `end_batch` calls: 
 
 * `begin_batch`: mark the start of a new batch and initialize a structure for it
 * `point`: store the point
@@ -240,7 +240,7 @@ What follows is the complete UDF implementation with our `info`,
 from kapacitor.udf.agent import Agent, Handler
 from scipy import stats
 import math
-import kapacitor.udf.udf_pb2
+from kapacitor.udf import udf_pb2
 import sys
 
 class TTestHandler(Handler):
diff --git a/content/kapacitor/v1.6/guides/anomaly_detection.md b/content/kapacitor/v1.6/guides/anomaly_detection.md
index 434f7b415..b0cbd56b0 100644
--- a/content/kapacitor/v1.6/guides/anomaly_detection.md
+++ b/content/kapacitor/v1.6/guides/anomaly_detection.md
@@ -240,7 +240,7 @@ What follows is the complete UDF implementation with our `info`,
 from kapacitor.udf.agent import Agent, Handler
 from scipy import stats
 import math
-import kapacitor.udf.udf_pb2
+from kapacitor.udf import udf_pb2
 import sys
 
 class TTestHandler(Handler):