diff --git a/unravel-emacs.org b/unravel-emacs.org
index e723202..dbb30e8 100644
--- a/unravel-emacs.org
+++ b/unravel-emacs.org
@@ -7141,7 +7141,7 @@ Also see `prot-window-delete-popup-frame'." command)
 
   (defun pet-eglot-setup ()
     "Set up Eglot to use server executables and virtualenvs found by PET."
-    (advice-add 'eglot-ensure :before #'pet-eglot--adjust-path-advice)
+    (advice-add 'eglot-ensure :around #'pet-eglot--adjust-path-advice)
     (advice-add 'eglot--workspace-configuration-plist :around #'pet-eglot--workspace-configuration-plist-advice)
     (advice-add 'eglot--guess-contact :around #'pet-eglot--guess-contact-advice))