diff --git a/gstlal-inspiral/bin/gstlal_inspiral_svd_bank_workflow b/gstlal-inspiral/bin/gstlal_inspiral_svd_bank_workflow
index d003d472f52fae3d82942b410955cc045cf9caea..576cf0658c43a753d5f3711a0e9992dbd6c5aaaa 100755
--- a/gstlal-inspiral/bin/gstlal_inspiral_svd_bank_workflow
+++ b/gstlal-inspiral/bin/gstlal_inspiral_svd_bank_workflow
@@ -40,7 +40,7 @@ split_bank = DataCache.find(DataType.SPLIT_BANK, svd_bins="*", subtype="*")
 ref_psd = DataCache.from_files(DataType.REFERENCE_PSD, config.data.reference_psd)
 
 # generate dag layers
-svd_bank = dag.svd_bank(reference_psd, split_bank)
+svd_bank = dag.svd_bank(ref_psd, split_bank)
 
 # write dag/script to disk
 dag_name = "svd_bank_dag"
diff --git a/gstlal-inspiral/python/lloidhandler.py b/gstlal-inspiral/python/lloidhandler.py
index 43ea65c762c9d48b1f088eefad46b3698513a498..66e5151d47523afc934ef554b99bd741eb891e4f 100644
--- a/gstlal-inspiral/python/lloidhandler.py
+++ b/gstlal-inspiral/python/lloidhandler.py
@@ -1024,7 +1024,7 @@ class LLOIDTracker:
 		if self.rankingstatpdf_url is not None and os.access(ligolw_utils.local_path_from_url(self.rankingstatpdf_url), os.R_OK):
 			_, self.rankingstatpdf = far.parse_likelihood_control_doc(ligolw_utils.load_url(self.rankingstatpdf_url, verbose = self.verbose, contenthandler = far.RankingStat.LIGOLWContentHandler))
 			if self.rankingstatpdf is None:
-				raise ValueError("\"%s\" does not contain ranking statistic PDFs" % url)
+				raise ValueError("\"%s\" does not contain ranking statistic PDFs" % self.rankingstatpdf_url)
 			if not self.rankingstat.template_ids <= self.rankingstatpdf.template_ids:
 				raise ValueError("\"%s\" is for the wrong templates")
 			if self.rankingstatpdf.is_healthy(self.verbose):
diff --git a/gstlal-inspiral/python/plots/horizon.py b/gstlal-inspiral/python/plots/horizon.py
index 2892479ecf1871accbf5b70e3c82fa2f74754471..d9f0205fe4dd1ca531284ba08f576738d44c663e 100644
--- a/gstlal-inspiral/python/plots/horizon.py
+++ b/gstlal-inspiral/python/plots/horizon.py
@@ -217,7 +217,6 @@ class HorizonDistance:
 def _load_files(files):
 	return files
 
-def _load_cachces(caches):
+def _load_caches(caches):
 	urls = (CacheEntry(line).url for cache in caches for line in open(cache))
 	return sorted(urls, key = lambda x: CacheEntry.from_T050017(x).description)
-