diff --git a/gstlal/python/multirate_datasource.py b/gstlal/python/multirate_datasource.py
index 7ca79f686a788c9d034faec4275a40db2a299ebb..122d8360f12c9421b49da80b5aa605539b555766 100644
--- a/gstlal/python/multirate_datasource.py
+++ b/gstlal/python/multirate_datasource.py
@@ -191,7 +191,7 @@ def mkwhitened_multirate_src(pipeline, src, rates, instrument, psd = None, psd_f
 	#
 
 	if veto_segments is not None:
-		head = datasource.mkdeglitcher(pipeline, head, veto_segments)
+		head = pipeparts.mkdeglitcher(pipeline, head, veto_segments)
 
 	#
 	# construct whitener.
@@ -307,7 +307,7 @@ def mkwhitened_multirate_src(pipeline, src, rates, instrument, psd = None, psd_f
 	#
 
 	if veto_segments is not None:
-		head = datasource.mkdeglitcher(pipeline, head, veto_segments)
+		head = pipeparts.mkdeglitcher(pipeline, head, veto_segments)
 
 	#
 	# optional gate on whitened h(t) amplitude.  attack and hold are