diff --git a/loopy/check.py b/loopy/check.py
index e8082c0ee4a71549f88dd6b1ca7174b9cdcf153d..41095743d9e07ab143a8299a82bee78d0396b8f9 100644
--- a/loopy/check.py
+++ b/loopy/check.py
@@ -731,7 +731,7 @@ def check_implemented_domains(kernel, implemented_domains, code=None):
                 print(79*"-")
                 print("CODE:")
                 print(79*"-")
-                from loopy.compiled import get_highlighted_code
+                from loopy.execution import get_highlighted_code
                 print(get_highlighted_code(code))
                 print(79*"-")
 
diff --git a/loopy/compiled.py b/loopy/compiled.py
index 062ba60cccb74da92ee593ee4c55b7bc3b4d0c63..613bca56fc1de23a66d45d8f990f91f9d3f9b949 100644
--- a/loopy/compiled.py
+++ b/loopy/compiled.py
@@ -25,7 +25,6 @@ THE SOFTWARE.
 
 from loopy.target.pyopencl_execution import (  # noqa
         PyOpenCLKernelExecutor)
-from loopy.execution import get_highlighted_code
 
 
 # {{{ compatibility