diff --git a/layout.sty b/layout.sty
index 5e7cd662dde3ad7516f19cae2c95c79f3cfb6c79..82f0ffb036b4b1d2bf0c2c4a15cd96b573624003 100644
--- a/layout.sty
+++ b/layout.sty
@@ -196,7 +196,8 @@ bookmarks=true]%
   \newtoggle{#1}
     \IfFileExists{../rubbish/#1.aux}{
       \externaldocument{../rubbish/#1}%
-      \settoggle{#1}{true}
+      \@addtofilelist{../rubbish/#1.aux}%
+      \settoggle{#1}{true}%
     }%
     {\typeout{No file #1.}
     \settoggle{#1}{false}