diff --git a/loopy/__init__.py b/loopy/__init__.py
index ff3a004d98ec4e2f4894c719264c9d05b617fa90..7073108b28f2362ca740b8f16aa02a621ff8a50c 100644
--- a/loopy/__init__.py
+++ b/loopy/__init__.py
@@ -1159,7 +1159,7 @@ def add_prefetch(kernel, var_name, sweep_inames=[], dim_arg_names=None,
     # If the rule survived past precompute() (i.e. some accesses fell outside
     # the footprint), get rid of it before moving on.
     if rule_name in new_kernel.substitutions:
-        return expand_subst(new_kernel, "id:"+rule_name)
+        return expand_subst(new_kernel, "... > id:"+rule_name)
     else:
         return new_kernel