diff --git a/src/node/utils/ExportHtml.js b/src/node/utils/ExportHtml.js
index 16c67618..da2eb2b3 100644
--- a/src/node/utils/ExportHtml.js
+++ b/src/node/utils/ExportHtml.js
@@ -426,7 +426,7 @@ exports.getPadHTMLDocument = function (padId, revNum, noDocType, callback)
if(ERR(err, callback)) return;
// Include some Styles into the Head for Export
- var stylesForExport = hooks.callAllStr("stylesForExport") || ''
+ var stylesForExport = hooks.callAllStr("stylesForExport", padId) || ''
var head =
(noDocType ? '' : '\n') +