diff --git a/src/gen/html-pdf-generator.js b/src/gen/html-pdf-generator.js
index 3c43b1b..ae55e10 100644
--- a/src/gen/html-pdf-generator.js
+++ b/src/gen/html-pdf-generator.js
@@ -23,7 +23,7 @@ Definition of the HtmlPdfGenerator class.
*/
onBeforeSave: function( info ) {
pdf(info.mk, info.outputFile);
- return mk;
+ return info.mk;
}
});