diff --git a/compose-publish.el b/compose-publish.el
index f25c1fdd9e0875c0676750bc0aead2fb39d20511..c07dc36b5cf2c88020dc2567caa82ba426bfae13 100644
--- a/compose-publish.el
+++ b/compose-publish.el
@@ -10,6 +10,7 @@
 (require 'ox-beamer)
 (require 'ox-re-reveal)
 (require 'ox-extra)
+(require 'org-id)
 
 ;; Force publishing of unchanged files to make sure all the pages get published.
 ;; Otherwise, the files considered unmodified based on Org timestamps are not