diff --git a/app/lib/ssr/html-template.js b/app/lib/ssr/html-template.js
index <HASH>..<HASH> 100644
--- a/app/lib/ssr/html-template.js
+++ b/app/lib/ssr/html-template.js
@@ -53,14 +53,15 @@ module.exports.getIndexHtml = function (template, cfg) {
   )
   let html = compiled(cfg.htmlVariables)
 
-  const data = { body: [], head: [] }
+  const data = { bodyTags: [], headTags: [] }
 
   if (cfg.ctx.mode.pwa) {
     fillPwaTags(data, cfg)
   }
 
-  if (data.body.length > 0 || data.head.length > 0) {
-    html = HtmlWebpackPlugin.prototype.injectAssetsIntoHtml(html, {}, data)
+  if (data.bodyTags.length > 0 || data.headTags.length > 0) {
+    const htmlCtx = { options: { xhtml: false } }
+    html = HtmlWebpackPlugin.prototype.injectAssetsIntoHtml.call(htmlCtx, html, {}, data)
   }
 
   html = injectSsrInterpolation(html)
fix(app): SSR index file management